package com.zq.leave.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author: baicun
 * @CreateTime: 2020-06-20
 * @Description: MybatisPlusConfig配置类
 */
@Configuration
@EnableTransactionManagement
@MapperScan("com.zq.leave.mapper")
public class MybatisPlusConfig {
    //配置分页
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
